package s3_9;

/**
 * @author Administrator
 */
public class TCL extends TV {
    boolean cloud;
    TCL(){}
    TCL(Boolean cloud,String brand,byte size){
        //父类继承的属性brand\size
        this.brand=brand;
        this.cloud=cloud;
        this.size=size;
    }
    @Override
    void output(){
        if(cloud==false){
            //
            super.output();
        }else{
            //调用父类的
            System.out.println("子类方法：牌子："+brand
            +",尺寸："+size+",是云电视");
        }
    }

}
